home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / ka9q / kit_src / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-03  |  1.9 KB  |  86 lines

  1. /*    (C) Copyright 1991 Dave Fritsche (wb8zxu), All Rights Reserved.
  2.  * 
  3.  *    Redistribution and use in source and binary forms are permitted for
  4.  *    non-commercial use, provided that the above copyright notice and this
  5.  *    paragraph are duplicated in all such forms.  THIS SOFTWARE IS PROVIDED
  6.  *    ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
  7.  *    WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
  8.  *    FITNESS FOR A PARTICULAR PURPOSE.
  9.  */
  10. #include <stdio.h>
  11.  
  12. #define MAIN
  13. #include "screen.h"
  14.  
  15. main(argc, argv)
  16. int argc;
  17. char *argv[];
  18. {
  19.     unsigned char tmp[128];
  20.     int n;
  21.  
  22.     debug = 0;
  23.     n = 1;
  24.     while (argc > 1)
  25.     {
  26.         if (strcmp(argv[n], "-d") == 0)
  27.             debug = 1;
  28.         n++;
  29.         argc--;
  30.     }
  31.  
  32.     scrn00();
  33.     sleep(5);
  34.     scrn00a();
  35.     proc00a();
  36.     scrn01();
  37.     proc01();
  38.     scrn02();
  39.     clrscr();
  40.     proc02();
  41.  
  42.     sprintf(tmp, "%s\\bin", path);            mk_dir(tmp);
  43.     sprintf(tmp, "%s\\finger", path);        mk_dir(tmp);
  44.     if (netnews)
  45.     {
  46.         sprintf(tmp, "%s\\news\\doc", path);    mk_dir(tmp);
  47.         sprintf(tmp, "%s\\news\\lib", path);    mk_dir(tmp);
  48.     }
  49.     sprintf(tmp, "%s\\pub\\doc", path);        mk_dir(tmp);
  50.     sprintf(tmp, "%s\\pub\\kiss", path);        mk_dir(tmp);
  51.     sprintf(tmp, "%s\\pub\\uudecode", path);    mk_dir(tmp);
  52.     sprintf(tmp, "%s\\spool\\help", path);        mk_dir(tmp);
  53.     sprintf(tmp, "%s\\spool\\mail", path);        mk_dir(tmp);
  54.     sprintf(tmp, "%s\\spool\\mqueue", path);    mk_dir(tmp);
  55.     sprintf(tmp, "%s\\spool\\rqueue", path);    mk_dir(tmp);
  56.     sprintf(tmp, "%s\\tmp", path);            mk_dir(tmp);
  57.  
  58.     if (ka9q && !g1emm)
  59.         mk_auto("ka9q.net");
  60.     if (!ka9q && g1emm)
  61.         mk_auto("g1emm.net");
  62.     if (ka9q && g1emm)
  63.     {
  64.         g1emm = 0;
  65.         mk_auto("ka9q.net");
  66.         g1emm = 1;
  67.         ka9q = 0;
  68.         mk_auto("g1emm.net");
  69.         ka9q = 1;
  70.     }
  71.  
  72.     if (ka9q || g1emm)
  73.     {
  74.         mk_domain("domain.txt");
  75.         mk_ftpu("ftpusers");
  76.         mk_fing();
  77.         mk_info();
  78.         mk_start("startnos.bat");
  79.     }
  80.     if (bm)
  81.         mk_bmrc();
  82.     if (netnews)
  83.         mk_news();
  84.     execute("finish.bat");
  85. }
  86.